#ifndef QUIZWIDGET_H
#define QUIZWIDGET_H

#include <QWidget>
#include <QGraphicsView>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include "ui_quizwidgetform.h"
#include "card.h"
class QuizWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QuizWidget(QWidget *parent = 0);

signals:
    void user_leaved_game(void);
    void inquire_next_card(void);
    void inquire_prev_card(void);
    void card_guessed(int);

public slots:
    void setCard(Card card);
private slots:
    void closeBtn_click();
    void prevCardBtn_click();
    void nextCardBtn_click();
    void hintBtn_click();
    void answerBtn_click();
private:
    QGraphicsView* grView;
    QPushButton* answerBtn, backBtn, nextBtn, exitBtn, hintBtn;
    QLineEdit* answerLE;
    QLabel* hintLabel;
    Ui::QuizWidget ui;
    Card currentCard;


};

#endif // QUIZWIDGET_H
